package top.jiangqiang.qianyi.business.model.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import top.jiangqiang.qianyi.common.jackson.EncryptionDeserializer;

import java.io.Serial;
import java.io.Serializable;

@Data
public class AdminUserLoginRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @JsonDeserialize(using = EncryptionDeserializer.class)
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @JsonDeserialize(using = EncryptionDeserializer.class)
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;
}
